﻿//-------------------------------------------------------------------------------------------------
// <copyright file="Stock.cs" company="Andrew Craig Keller">
//  Copyright (c) Andrew Craig Keller.  All rights reserved.
// </copyright>
//-------------------------------------------------------------------------------------------------

namespace StockQuoteServices.Contracts
{
    using System.Collections.Generic;
    using System.Runtime.Serialization;

    /// <summary>
    /// A financial stock.
    /// </summary>
    [DataContract(Namespace = "contracts.stockquote.wayne.keller-pa.net")]
    public class Stock
    {
        /// <summary>
        /// Gets or sets the stock's ticker symbol.
        /// </summary>
        [DataMember]
        public string TickerSymbol { get; set; }

        /// <summary>
        /// Gets or sets the full name of the company.
        /// </summary>
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the last price at which the stock traded.
        /// </summary>
        [DataMember]
        public decimal LastPrice { get; set; }

        /// <summary>
        /// Gets or sets a collection of historical prices for the stock.
        /// </summary>
        [DataMember]
        public IList<StockHistoricalPrice> HistoricalPrices { get; set; }
    }
}
